<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$title} 管理中心 - {$admintitle} </title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<link href="styles/page.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/action.js"></script>
</head>
<body>
<h1>
<span class="action-span1">{$title} 管理中心  - {$admintitle} </span>
<div style="clear:both"></div>
</h1>
<form method="post" action="novel.php" name="theForm">
<!-- start ad position list -->
<input type="text" name="selectvalue" id="selectvalue" value = "{$namevalue}">
<select id="stylename" name="stylename">
<option value="0">请选择</option>
<option value="1" {if $selectstyle == "1"}selected{/if} >作者</option>
<option value="2" {if $selectstyle == "2"}selected{/if} >书名</option>
<input type="button" value="提交" onclick="novelcheck()">
<input type="hidden" value="searchuser" name="act">
</select>
</from>
<div class="list-div" id="listDiv">
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
  <tr>
    <th>UID</th>
    <th>书名</th>
    <th>作者</th>
    <th>类别</th>
    <th>排行</th>
    <th>摘要</th>
    <th>点击量</th>
    <th>收藏次数</th>
    <th>红票数</th>
    <th>黑票数</th>
    <th>鲜花数</th>
    <th>板砖数</th>
    <th>状态</th>
    <th>小说状态</th>
    <th>创建时间</th>
  </tr>
  {if $novelarray}
  {if $act =='all'}
  {section name=val loop=$novelarray}
  {assign var=v value=$novelarray[val].novelstyle}
  <tr>
	<td>{$novelarray[val].id}</td>
	<td>{$novelarray[val].title}</td>
	<td><a href="userdetial.php?id={$novelarray[val].authid}">{$novelarray[val].author}</a></td>
	<td>{$novelst.$v}</td>
	<td><input typle="text" value="{$novelarray[val].rank}" onblur="updatenoveldates({$novelarray[val].id},this.value,'rank')" ></td>
	<td>{$novelarray[val].summary}</td>
	<td>{$novelarray[val].read}</td>
	<td>{$novelarray[val].collect}</td>
	<td>{$novelarray[val].upticket}</td>
	<td>{$novelarray[val].downticket}</td>
	<td>{$novelarray[val].flower}</td>
	<td>{$novelarray[val].brick}</td>
	<td><a href="novel.php?id={$novelarray[val].id}&act=stat&value={$novelarray[val].state}">{if $novelarray[val].state==0}正常{else}下架{/if}</a></td>
	<td>{if $novelarray[val].bookstat == 0}连载{else}全本{/if}</td>
	<td>{$novelarray[val].creattime|date_format:'%Y-%m-%d %H:%M:%S'}</td>
	<td></td>
  </tr>
  {/section}
  {else}
  <tr>
	<td>{$memberarray.id}</td>
	<td>{$memberarray.name}</td>
	<td>{$memberarray.money}</td>
	<td>{$memberarray.created|date_format:'%Y-%m-%d %H:%M:%S'}</td>
	<td>{$memberarray.phone}</td>
	<td><a href="?aco=updat&val={$memberarray.isphone}&id={$memberarray.id}&act=searchuser&stylename={$selectstyle}&selectvalue={$namevalue}">{if $memberarray.isphone == 0}未验证{else}验证{/if}</a></td>
	<td>查看<a href="userdetial.php?id={$memberarray.id}">{$memberarray.name}</a>的详细信息</td>
  </tr
  {/if}
  {else}
  <tr>
	<td>没有数据</td>
  </tr>
  {/if}
  
  </table>
 {include file="./pageclass.tpl"}
</div>
{include file="foot.tpl"}
</body>
</html>
